package com.clgc.eduservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 老师和班级表
 * </p>
 *
 * @author testjava
 * @since 2021-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TeacherClass对象", description="老师和班级表")
public class TeacherClass implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id",type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "班级id")
    private String classId;

    @ApiModelProperty(value = "老师id")
    private Integer teacherId;

    public TeacherClass(String classId, Integer teacherId) {
        this.classId = classId;
        this.teacherId = teacherId;
    }
}
